//
//  HMMineTableViewController.swift
//  Weibo
//
//  Created by itteacher on 2017/7/22.
//  Copyright © 2017年 itteacher. All rights reserved.
//

import UIKit

class HMMineTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

//        setupNavUI()
        if isLogin {
            setupPushButton()
        } else {
            //  没有登录修改访客视图信息
            visitorView?.updateVisitorInfo(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }
        
    }
    //  设置导航栏push按钮
    private func setupPushButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    //  MARK: --    push按钮事件
    @objc private func pushAction() {
        let testVC = HMTestViewController()
        self.navigationController?.pushViewController(testVC, animated: true)
    }
    
    
    


}
